﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<div id="toplinks" class="toplinks">
    <ul class="isuser">
        <% if (!Request.IsAuthenticated)
            { %>
            <li class="registertop"><%= Html.ActionLink("Đăng kí", "Register", "Account")%></li>
            <li>|</li>
			<li><%= Html.ActionLink("Đăng nhập", "LogOn", "Account")%></li>             
        <% }
            else
            { %>
            <li><span style="color:#0000cc;">Xin chào <a href="<%= Url.Action("ThongTinQuanLy", "Account", new { username = Page.User.Identity.Name }) %>" style="text-decoration: underline;"><%= Page.User.Identity.Name%></a> &nbsp;&nbsp;&nbsp;|</span></li>
			<li style="text-decoration: underline;"><%= Html.ActionLink("Thoát ra", "LogOff", "Account")%></li>     
            <li>|</li>
			<li style="text-decoration: underline;"><%= Html.ActionLink("Thay đổi mật khẩu", "ChangePassword", "Account")%></li>    
        <% } %>
	</ul>
</div>